<!DOCTYPE html>
<%@page import="cn.school.entity.Student"%>
<%@page import="java.util.*"%>
<html lang="en">
<head>
<%@ page isELIgnored="false" language="java" contentType="text/html; charset=utf-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在此处插入标题</title>
</head>
<body>
 <div>
  $    {,  },[]   . 
 </div>
 <%
 	
 	request.setAttribute("msg","data in request");
 pageContext.setAttribute("msg","data in page");
 session.setAttribute("msg","data in session");
 application.setAttribute("msg","data in application");
 
 Student stu=new Student();
 stu.setStuno(19994L);
 stu.setSname("赵青");
 stu.setEnterdate(new java.util.Date());
 pageContext.setAttribute("s", stu);
 List<String> list=new ArrayList<>();
 list.add("张腾");
 list.add("赵庆");
 list.add("赫鲁晓夫");
 list.add("伯格日涅夫");
 request.setAttribute("bigguy", list);
 Map<String,String> map=new HashMap<>();
 map.put("dog","狗");
 map.put("chicken","鸡");
 map.put("cow","牛");
 map.put("python","蟒蛇");
 pageContext.setAttribute("dict", map);
 %>
 <h2>
  ${bigguy[0]},${bigguy["1"]}
  <br/>
  ${dict.cow},${dict["python"]}
 </h2>
 <h1 style="color:red;font-size:50px">
  <%--  ${s},<br/> --%>
   学号：${s.stuno},姓名:${s['sname']}....<%-- ${s['xingming']} --%>
   Xuehao大于1000？${s.stuno ne 1000}
 </h1>
 <h1>
 	${msg}
 </h1>
 <h1>
 	${obj}
 </h1>
 <h1>
 	in session:${sessionScope.msg}
 	<%-- session.getAttribute("msg")--%>
 </h1>
</body>
</html>